package com.yhgarden.bbs.mapper.system;

import com.yhgarden.bbs.entity.system.RolePermissions;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author Laijiaxiang
* @since 2019-09-17
*/
public interface RolePermissionsMapper  {

    public int create(RolePermissions rolePermissions);

    public int update(RolePermissions rolePermissions);

    public RolePermissions getById(@Param("id") String id);

    public RolePermissions getByIdForList(@Param("id") String id);

    public RolePermissions getByIdMoreDetail(@Param("id") String id);

    public int queryCount(@Param("example") RolePermissions rolePermissions);

    public List<RolePermissions> query(@Param("example") RolePermissions rolePermissions,
                                       @Param("order") String order,
                                       @Param("field") String field);

    public List<RolePermissions> queryForList(@Param("example") RolePermissions rolePermissions,
                                              @Param("order") String order,
                                              @Param("field") String field);

    public List<RolePermissions> queryMoreDetail(@Param("example") RolePermissions rolePermissions,
                                                 @Param("order") String order,
                                                 @Param("field") String field);

    public int delete(@Param("id") String id);

    public int deleteByExample(@Param("example") RolePermissions rolePermissions);

    public int batchDelete(@Param("ids") List<String> ids);

}

